def check(n, page):
    for i in range(1, n - 1):
        if sum(page[:i]) % 2 != 0 and sum(page[i:]) % 2 != 0:
            return True
    return False

t = int(input())
for _ in range(t):
    n = int(input())
    page = list(map(int, input().split()))
    print('YES' if check(n, page) else 'NO')